package com.hlf.modules.merchant.store.service.impl;

import com.hlf.modules.merchant.store.entity.MerchantChannel;
import com.hlf.modules.merchant.store.mapper.MerchantChannelMapper;
import com.hlf.modules.merchant.store.service.MerchantChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 商户渠道进件
 * Created by Administrator on 2017/10/25.
 */
@Service
public class MerchantChannelServiceImpl implements MerchantChannelService {
    @Autowired
    private MerchantChannelMapper merchantChannelMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return merchantChannelMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MerchantChannel record) {
        return merchantChannelMapper.insert(record);
    }

    @Override
    public int insertSelective(MerchantChannel record) {
        return merchantChannelMapper.insertSelective(record);
    }

    @Override
    public MerchantChannel selectByPrimaryKey(Long id) {
        return merchantChannelMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MerchantChannel record) {
        return merchantChannelMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MerchantChannel record) {
        return merchantChannelMapper.updateByPrimaryKey(record);
    }

    @Override
    public void saveOrUpdateMerchantChannel(MerchantChannel record) {


    }

    @Override
    public MerchantChannel selectByMerchanIdAndChannelId(String merchantId, String channelId) {
        return merchantChannelMapper.selectByMerchanIdAndChannelId(merchantId,channelId);
    }
}
